package juice.DI$field;

import com.google.inject.Binder;
import com.google.inject.Inject;
import com.google.inject.Module;
import com.google.inject.name.Named;
import com.google.inject.name.Names;

public class FieldMainStatic implements Module
{
	@Inject
	private Service service;

	public Service getService()
	{
		return service;
	}

	@Inject
	@Named("staticDI")
	public static Service service2;

	@Override
	public void configure(Binder arg0)
	{
		arg0.bind(Service.class).annotatedWith(Names.named("staticDI")).to(ServiceImplStatic.class);
		arg0.requestStaticInjection(FieldMainStatic.class);
	}
}
